CPP=main.cpp threadpool.cpp

FLAG= -fPIC -shared
CFLAG= -c ${FLAG}
GPP= g++ -g

OBJ=main.o threadpool.o


.PHONY:ALL
all:test

HEAD= -I. 

LIB= 

test: 
	g++ -g $(CPP) threadpool.h spthread.h   -lpthread -o test
	#valgrind --tool=memcheck --leak-check=full --track-origins=yes --show-reachable=yes ./test
#libconnectpool.so: connectpool.o simplesock.o
#	${GPP} ${FLAG} $< ${HEAD}  -o $@ 
#	-rm -f *.o

.cpp.o:
	${GPP} $(CFLAG) $< ${HEAD}  -o $@

#install:
#	cp libcompress.so ../libcomp/so/
#	cp *.so ../libcomp/so/

clean:
	-rm -f *.o
	-rm -f test
